package com.meihua.baoleyi.widget;

/**
 * Created by ${zhangyuanchao} on 2017/10/27.
 */

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.meihua.baoleyi.R;
import com.youth.banner.loader.ImageLoader;

/**
 * banner图片加载器
 */
public class GlideImageLoader extends ImageLoader {
    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {
        //Glide 加载图片简单用法
        try {
            Glide.with(context).load(path).placeholder(R.mipmap.chanpin).into(imageView);
        } catch (Exception e) {

        }

    }
}
